﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
<link href="{THEME_STYLE_PATH}style/css/default.css" type="text/css" rel="stylesheet" />
<link href="{THEME_STYLE_PATH}style/css/checkin.css" type="text/css" rel="stylesheet" />
<script src="{THEME_STYLE_PATH}style/jsjs/jquery.min.js"></script>
<script src="{THEME_STYLE_PATH}style/js/core.js"></script>
</head>
<body style="background:none;">
	<div class="topbn1"></div>
	<div class="topbn2">
		<div class="topbn2_in"><label class="a2" id="jxy_checin_hitme" style="cursor:pointer;"><img src="{THEME_STYLE_PATH}style/images/checkin/aboutbtn.jpg" /><br />签到按钮在页面底部哦！</label><label class="a1" id="jxy_checkin_detail" style="display:none;"><img src="{THEME_STYLE_PATH}style/images/checkin/aboutgz.png" /></label></div>
	</div>
	<div class="centbox">
		<div class="cenbox_in">
			<h1>热门体验</h1>
			{php $_where = time()." > start_time AND end_time > ".time()}
			{pc:document action="lists" num="6" catid="2" where='$_where'}
			<ul class="idx_ty" ><!--显示6条，注意第3条，第6条LI的样式-->
				{loop $data $r}
				<li {if $n % 3 == 0}class="last"{/if}>
					<p><a href="{$r[url]}" target="_blank"><img src="{$r[thumb]}" alt="{$r[title]}" width="202" height="118" /></a></p>
					<p class="a1"><a href="{$r[url]}" title="{$r[title]}" target="_blank">{$r[title]}</a></p>
					<p class="a2">类型：网页试玩&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;参与人数：5351<br />每人奖励：
					{if floor($r[reward]/100000000)}
						{floor($r[reward]/100000000)}亿{elseif floor($r[reward]/10000000)}
						{floor($r[reward]/10000000)}千万{elseif floor($r[reward]/1000000)}
						{floor($r[reward]/1000000)}百万{elseif floor($r[reward]/100000)}
						{floor($r[reward]/100000)}十万{elseif floor($r[reward]/10000)}
						{floor($r[reward]/10000)}万
					{elseif floor($r[reward]/1000)}
						{number_format($r[reward]/10000,1)}万
					{/if}<img src="{THEME_STYLE_PATH}style/images/ub.gif" class="ub21" style="margin-bottom:0px;vertical-align: -1px;"/>&nbsp;(约6百元人民币)<br />充值返利：0%</p>
				</li>
				{/loop}				
			</ul>
			{/pc}
			<div class="qdbtn"><div class="qdun">15&nbsp;秒后即可签到</div></div>
			<div class="foot">本活动最终解释权归及时赚所有<br />www.jishizhuan.com</div>
		</div>
	</div>
	<div class="qdokbox_o" style="z-index: 9999;display:none;">
		<div class="qdokbox_i">
			<p class="a1">签到成功！</p>
			<p class="a5" id="jxy_check_money" style="position: relative;"></p>
			<p class="a3" id="jxy_check_userG"><span style=" vertical-align:15px;">总{type_change()}币：</span>
			<?php
			$u_coin = $this->userinfo['u_coin'];
			$u_coin_string = strlen($u_coin);
			for ($i=0; $i < $u_coin_string; $i++) {
				$y = ($u_coin[$i] > 0) ? ($u_coin[$i] * 36) : 0;
				echo '<label class="nobg" style="background-position-y:-'.$y.'px;"></label>';
			}
			?>
			</p>
			<!-- <p class="a2">本次签到收益={type_change()}币总数(不含聚财宝、即时通)*0.03%</p> -->
			<p class="a4"><a href="{__APP__}">确定</a></p>
		</div>
	</div>
</body>
</html>
<script type="text/javascript">
var init = 15;var h = $('body').height();
var interval = window.setInterval(holdOn,1000);
$(document).ready(function(){
	$('#jxy_checin_hitme').mousemove(function(){$('#jxy_checkin_detail').show();}).mouseout(function(){$('#jxy_checkin_detail').hide();});
	$('#jxy_checkin_detail').mousemove(function(){$('#jxy_checkin_detail').show();}).mouseout(function(){$('#jxy_checkin_detail').hide();});	
	$('#jxy_checin_hitme').click(function(){
		//$('html, body').animate({ scrollTop: h }, 1000);
	});
});


function holdOn(){
	if(init>1){
		init--;
		$('.qdun').html(init+"&nbsp;秒后即可签到");
	}else{
		$.ajax({
			type: "POST",
			url: "{U('Member/Sign/checkBegin')}",
			dataType: "json",
			success: function(strJson){
				if(strJson.status=='1'){
					$('.qdbtn').html(strJson.info);
				}else{
					alert(strJson.info);
				}
			}
		});
		window.clearInterval(interval)
	}
}


var _s = 1;
function checkIn(_f1) {
	if(_s){
		_s = 0;
		$.post("{U('Member/Sign/checkin')}", {
			authcode:_f1
		}, function (response) {
			if (response.status == 1) {
				$('#jxy_check_money').html('<label>{type_change()}币：+'+response.insertG+'&nbsp;&nbsp;签到次数：+'+response.treasure+'</label>');
				var _html = '<div class="boxy-modal-blackout" id="background-Layer" style="position:absolute;background-color: rgb(0, 0, 0); filter:alpha(opacity=50);opacity: 0.5;width: 100%; height: 1520px; top:0;z-index: 99;"></div>';
				$(_html).appendTo($('body', $(document)));
				$('.qdokbox_o').show();
				juxiangyou.core.func.setPopupDivPos($('.qdokbox_o'),0,0);
				
				setTimeout('$("#jxy_check_money").animate({top:"50px",opacity:0}, 2000);',1000);
				setTimeout("scoll("+(response.userG*1)+")",2000);
				setTimeout('$("#jxy_check_money").css({"top":0,"opacity":100});',3100);
			} else {
				popup.prompt(response.info);
				_s = 1;
			}   
		}, 'JSON');
	}
}
//滚动效果
function scoll(insertG) {
	var checkG = insertG.toString();
	var labelArr = $('#jxy_check_userG label');
	if(labelArr.size()>0){
		for(var i=labelArr.size() - 1,j=checkG.length;i>=0;i--){
			if(j>0){
				j--;
				var v = checkG[j]*36;
			}else{
				var v = 0;
			}
			var t = 200*(labelArr.size()-i);
			$($("#jxy_check_userG label").get(i)).animate({"background-position-y":"-"+v+"px"},t);
		}
	}
}
</script>